package com.lineage.server.serverpackets;

public class S_Poison extends ServerBasePacket {
  private byte[] _byte;
  
  public S_Poison(int objId, int type) {
    this._byte = null;
    writeC(165);
    writeD(objId);
    switch (type) {
      case 0:
        writeC(0);
        writeC(0);
        break;
      case 1:
        writeC(1);
        writeC(0);
        break;
      case 2:
        writeC(0);
        writeC(1);
        break;
    } 
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
